#ifndef PLOTWIDGET_H
#define PLOTWIDGET_H

#include <QObject>
#include <QModelIndex>
#include <QSplitter>
#include <QMessageBox>
#include <QFileDialog>

class FunctionEditorWidget;
class PlotView;
class FunctionsModel;

class PlotWidget : public QSplitter
{
    Q_OBJECT

public:
    PlotWidget();
    PlotView *getPlotView(){ return plotView; }
    void exportToImage();
private slots:
    void new_func();
    void edit_func ( const QModelIndex & );
    void create_func();
    void deleteFunc();
    void setStackedWidget(int i);

private:
    FunctionEditorWidget * editor;

    PlotView * plotView;
    FunctionsModel* b_funcsModel;

};

#endif // PLOTWIDGET_H
